<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>LikeArray</title>
</head>
<body>
    <script>
        let obj = {
            "0": "a",
            "1": "b",
            "2": "c",
            "length": 3,
            [Symbol.iterator]: [][Symbol.iterator]
        }

        for(let x of obj) {
            console.log(x);
        }
    </script>
</body>
</html>